<template>
	<view class="page">
		<!-- dsjfjsjf -->
		<!-- <web-view :url='pathUrl'></web-view> -->
		<rich-text :nodes="nodeHtml"></rich-text>
	</view>
</template>

<script setup>
	import {
		ref,
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'
	import config from '@/uitls/config.js'
	import {privacyPolicy,userProtocol} from './js/api.js'
	const nodeHtml = ref('')
	const getRichData = async(type)=>{
		let res = ''
		if(type == 'privacyPolicy'){
			res = await privacyPolicy()
		}else{
			res = await userProtocol()
		}
		nodeHtml.value = res.data.data
	}
	onLoad((options) => {
		// console.log(options.type)
		if(options.type) getRichData(options.type)
		
	})
</script>

<style lang="less">
.page{
	padding: 30rpx;
}
</style>